/*
 * @Descripttion: 
 * @Author: zhanyi
 * @Date: 2021-10-23 09:52:01
 * @FilePath: \wczd-mobile\src\utils\changeData.js
 */
export default {
  dataToParams (url, params) {
    url = url + '?'
    Object.keys(params).forEach((element, index) => {
      if (index + 1 === Object.keys(params).length) {
        url += '' + element + '=' + params[element]
      } else {
        url += '' + element + '=' + params[element] + '&'
      }
    });
    return url
  }
}
